<?php get_header(); ?>
<div id="content">    
	<div id="oak" class="white-gray">            
		<div id="pages-jump-index" class="no-page top">
        <span class="left-line">共<strong><?php the_author_posts(); ?></strong>篇日志</span> <a href="http://www.gexiaofei.com/tag/%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e%e4%bc%98%e5%8c%96/">搜索引擎优化</a><a href="http://www.gexiaofei.com/tag/wordpress/">Wordpress</a><a href="http://www.gexiaofei.com/tag/%e7%94%9f%e6%b4%bb/">生活</a><a href="http://www.gexiaofei.com/tag/google/">Google</a><a href="http://www.gexiaofei.com/tag/%e7%99%be%e5%ba%a6/">百度</a>
		</div>
        <div id="wide-column">

<?php query_posts($query_string . "&cat=-65,-167");?>
<?php
$postnum = 1;
$showad1 = 1;
?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); 
  if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
                <h3 class="title-article">
                    <span class="edit">
               <?php the_time('M jS, Y') ?></span>
                    <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong></h3>
                <div class="text-article">
<?php if ($paged < 2 and $postnum == $showad1) { ?><?php the_content('Read the rest of this entry &raquo;'); ?>
<?php } else { ?>
<? {    
    $description = substr(strip_tags($post->post_content), 0, 300);
    $description = utf8_trim($description) . "...";
    } ?><?=$description?><?php } ?>
		</div>
                <p class="stat-article">
<span class="float-right">
<a href="<?php the_permalink() ?>" rel="nofollow">查看全文</a>
    	<span class="pipe">|</span>
		<a rel="nofollow" href="<?php the_permalink() ?>#mycomment">发表评论</a>
</span>
<?php if(function_exists('the_views')) { the_views(); } ?><span class="pipe">|</span>
<?php comments_number('评论(0)', '评论(1)', '评论(%)' );?></p>
<?php if ($postnum == $showad1) { ?>
 <iframe src="http://ads.gexiaofei.com/blog/single-ads.html" width="474px" height="80px" scrolling="no" frameborder="0"></iframe>
<?php } ?>
<?php $postnum++; ?>
 <?php endwhile; endif; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		 </div>
          <?php include (TEMPLATEPATH . "/sidebar-right.php"); ?>
		        </div>
	</div>
</div>
<?php include (TEMPLATEPATH . "/sidebar-left.php"); ?>
</div>
<?php include (TEMPLATEPATH . "/sidebar-ads.php"); ?>
<?php get_footer(); ?>